


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="kickstart" />
<g:set var="entityName"
	value="${message(code: 'shiroRole.label', default: 'ShiroRole')}" />
<title><g:message code="default.edit.label" args="[entityName]" /></title>
</head>
<body>


	<section id="edit" class="first">
		<g:hasErrors bean="${shiroRoleInstance}">
			<div class="errors alert-error">
				<g:renderErrors bean="${shiroRoleInstance}" as="list" />
			</div>
		</g:hasErrors>

		<g:form method="post" class="form-horizontal">
			<g:hiddenField name="id" value="${shiroRoleInstance?.id}" />
			<g:hiddenField name="version" value="${shiroRoleInstance?.version}" />
			<div class="dialog">
				<table>
					<tbody>

						<tr class="prop">
							<td valign="top" class="name"><label for="name"><g:message
										code="shiroRole.name.label" default="Name" /></label></td>
							<td valign="top"
								class="value ${hasErrors(bean: shiroRoleInstance, field: 'name', 'errors')}">
								<g:textField name="name" value="${shiroRoleInstance?.name}" />
							</td>
						</tr>

						<tr class="prop">
							<td valign="top" class="name"><label for="roles"><g:message
										code="shiroUser.users.label" default="Users" /></label></td>
							<td valign="top"
								class="value ${hasErrors(bean: shiroRoleInstance, field: 'users', 'errors')}">
								<shiroui:userSelect name="users" size="10"
									value="${shiroRoleInstance?.users}" />
							</td>
						</tr>

						<tr class="prop">
							<td valign="top" class="name"><label for="permissions"><g:message
										code="shiroUser.permissions.label" default="Permissions" /></label></td>
							<td valign="top"
								class="value ${hasErrors(bean: shiroRoleInstance, field: 'permissions', 'errors')}">
								<shiroui:permissionSelect name="permissions" size="10"
									value="${shiroRoleInstance?.permissions}" />
							</td>
						</tr>

						<tr class="prop">
							<td valign="top" class="name"><label for="description"><g:message
										code="shiroRole.description.label" default="Description" /></label></td>
							<td valign="top"
								class="value ${hasErrors(bean: shiroRoleInstance, field: 'description', 'errors')}">
								<g:textArea name="description"
									value="${shiroRoleInstance?.description}" />
							</td>
						</tr>

					</tbody>
				</table>
			</div>
			<div class="form-actions">
				<g:actionSubmit class="save btn-primary" action="update"
					value="${message(code: 'default.button.update.label', default: 'Update')}" />
				<g:actionSubmit class="delete btn-danger" action="delete"
					value="${message(code: 'default.button.delete.label', default: 'Delete')}"
					onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				<button class="btn" type="reset">Cancel</button>
			</div>
		</g:form>
	</section>
</body>
</html>
